<?php
class JobControllerHelper {
	static $job_uuid = "job.uuid";
	
	static function genuuid() {
		$uuid = Common::uuid();
		Session::set(JobControllerHelper::$job_uuid, $uuid);
	}
	
	static function getuuid() {
		return Session::get(JobControllerHelper::$job_uuid);
	}
}

class JobController extends LoginedController {
	public function index($path) {
		if($path) {
			throw new NotFoundException();
		}
		View::load("job/index");
	}
	
	public function submit($path) {
		if(strtolower($_SERVER['REQUEST_METHOD']) != 'post') {
			G('');
		}
		JobControllerHelper::genuuid();
		View::load("job/result");
	}
}